import api from './apis';
import { post, get, postFile, postJson,postJson_cydn } from '../request';

// 答题
export function paperList(params) {
  return postJson_cydn(api.paperList, params, true);
}

//cydn token
export function token_cydn(params){
    return postJson_cydn(api.token_cydn, params, true);
}

export function questionsIds(params){
    return postJson_cydn(api.questionsIds, params, true);
}

export function questionsSee(params){
    return postJson_cydn(api.questionsSee, params, true);
}

export function questionsAnswer(params){
    return postJson_cydn(api.questionsAnswer, params, true);
}

export function answerSubmit(params){
    return postJson_cydn(api.answerSubmit, params, true);
}
export function saveSubmit(params){
    return postJson_cydn(api.saveSubmit, params, true);
}
export function saveSubmitManager(params){
    return postJson_cydn(api.saveSubmitManager, params, true);
}
export function getVCDetailByID(params){
    return postJson_cydn(api.getVCDetailByID, params, true);
}
export function updateAfterSubmitSurvey(params){
    return postJson_cydn(api.updateAfterSubmitSurvey, params, true);
}
export function updateVisitDetail(params){
    return postJson_cydn(api.updateVisitDetail, params, true);
}
export function getVisitDetail(params){
    return postJson_cydn(api.getVisitDetail, params, true);
}

export function addSbqd (params) {
    return postJson_cydn(api.addSbqd, params, true);
  }
  
export default {
    addSbqd,
    paperList,
    token_cydn,
    questionsIds,
    questionsSee,
    questionsAnswer,
    answerSubmit,
    saveSubmitManager,
    getVCDetailByID,
    updateAfterSubmitSurvey,
    updateVisitDetail,
    getVisitDetail
};
